<template>
  <div class="bgff p20" style="min-height:100%;box-sizing:border-box;">
    <el-form
            :model="ruleForm"
            ref="ruleForm"
            label-width="100px"
            class="demo-ruleForm"
            style="width:400px;"
    >
      <el-form-item label="发件人邮箱" prop="name">
        <el-input v-model="ruleForm.name" placeholder="发件人邮箱"></el-input>
      </el-form-item>
      <el-form-item label="发件人用户名" prop="name">
        <el-input v-model="ruleForm.password" placeholder="发件人用户名"></el-input>
      </el-form-item>
      <el-form-item label="邮箱密码" prop="name">
        <el-input v-model="ruleForm.password" placeholder="邮箱密码"></el-input>
      </el-form-item>
      <el-form-item label="SMTP地址" prop="name">
        <el-input v-model="ruleForm.password" placeholder="SMTP地址"></el-input>
      </el-form-item>
      <el-form-item label="SMTP端口" prop="name">
        <el-input v-model="ruleForm.password" placeholder="SMTP端口"></el-input>
      </el-form-item>
      <el-form-item  prop="delivery">
        <el-button size="mini" type="primary" @click="updata">保存配置</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        ruleForm: {
          name: "15681008999",
          password: "710591",
          date1: "",
          date2: "",
          delivery: false,
          type: [],
          resource: "",
          desc: ""
        }
      };
    },
    methods: {
      submitForm(formName) {
        this.$refs[formName].validate(valid => {
          if (valid) {
            alert("submit!");
          } else {
            console.log("error submit!!");
        return false;
      }
      });
      },
      resetForm(formName) {
        this.$refs[formName].resetFields();
      },

      updata(){
        window.open("http://admin.ywhl106.com/login",'_blank');
      }
    }
  };
</script>

<style scoped lang="scss">
</style>
